\hypertarget{struct_sprite}{
\section{Sprite Struct Reference}
\label{struct_sprite}\index{Sprite@{Sprite}}
}


{\ttfamily \#include $<$sprite.h$>$}

\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{struct_sprite_a6150e0515f7202e2fb518f7206ed97dc}{
int {\bfseries x}}
\label{struct_sprite_a6150e0515f7202e2fb518f7206ed97dc}

\item 
\hypertarget{struct_sprite_a0a2f84ed7838f07779ae24c5a9086d33}{
int \hyperlink{struct_sprite_a0a2f84ed7838f07779ae24c5a9086d33}{y}}
\label{struct_sprite_a0a2f84ed7838f07779ae24c5a9086d33}

\begin{DoxyCompactList}\small\item\em current sprite position \item\end{DoxyCompactList}\item 
\hypertarget{struct_sprite_a2474a5474cbff19523a51eb1de01cda4}{
int {\bfseries width}}
\label{struct_sprite_a2474a5474cbff19523a51eb1de01cda4}

\item 
\hypertarget{struct_sprite_ad12fc34ce789bce6c8a05d8a17138534}{
int \hyperlink{struct_sprite_ad12fc34ce789bce6c8a05d8a17138534}{height}}
\label{struct_sprite_ad12fc34ce789bce6c8a05d8a17138534}

\begin{DoxyCompactList}\small\item\em sprite dimensions \item\end{DoxyCompactList}\item 
\hypertarget{struct_sprite_a90b9d56e145baae469f7b6bb757d9b27}{
int {\bfseries xspeed}}
\label{struct_sprite_a90b9d56e145baae469f7b6bb757d9b27}

\item 
\hypertarget{struct_sprite_a8e19090b4aa5dd9bb43efe8b74488f6d}{
int \hyperlink{struct_sprite_a8e19090b4aa5dd9bb43efe8b74488f6d}{yspeed}}
\label{struct_sprite_a8e19090b4aa5dd9bb43efe8b74488f6d}

\begin{DoxyCompactList}\small\item\em sprite current speed in the x and y direction \item\end{DoxyCompactList}\item 
\hypertarget{struct_sprite_a7b00b1bfd666e26484471bd17a74eaa9}{
char $\ast$ \hyperlink{struct_sprite_a7b00b1bfd666e26484471bd17a74eaa9}{map}}
\label{struct_sprite_a7b00b1bfd666e26484471bd17a74eaa9}

\begin{DoxyCompactList}\small\item\em the sprite pixmap (use \hyperlink{group___sprite_ga87bd140b1b1b28386f37ebac5c9b9d2e}{read\_\-xpm()}) \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
A \hyperlink{struct_sprite}{Sprite} is an \char`\"{}object\char`\"{} that contains all needed information to create, animate, and destroy a pixmap. The functions assume that the background is BLACK and they take into account collision with other graphical objects or the screen limits. 

The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize}
\item 
E:/FEUP/2ano 2semestre/LCOM/LCOM.projecto.google/code/sprite.h\end{DoxyCompactItemize}
